package com.cskaoyan.controller;

import com.cskaoyan.service.CollectService;
import com.cskaoyan.vo.BaseRespVo;
import com.cskaoyan.vo.CollectVo;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class CollectController {

    @Autowired
    CollectService collectService;

    /**
     * 功能:会员收藏页面
     * 作者:whj
     */
    @RequestMapping("admin/collect/list")
    public BaseRespVo list(Integer page,Integer limit,Integer userId,Integer valueId,String sort,String order){

        CollectVo collectVo = collectService.query(page,limit,userId,valueId,sort,order);
        return BaseRespVo.ok(collectVo);
    }

}
